﻿using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;

namespace Importer
{
  public class Program
  {
    private static readonly CompositionContainer Container;

    static Program()
    {
      Container = new CompositionContainer(
        new AssemblyCatalog(typeof(Program).Assembly));
    }

    static void Main()
    {
//      CodeGen.Do();
//      LoadConverter();
      LoadExportCsv();
    }
#if OldModel
    private static void LoadConverter()
    {
      var program = new Converter();
      Container.SatisfyImportsOnce(program);
      program.Run();
    }
#endif
    private static void LoadExportCsv()
    {
      var program = new ExportCsv();
      Container.SatisfyImportsOnce(program);
      program.Run();
    }
  }
}
